<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>$page_title</title>
<link rel="stylesheet" href="../../htdocs/sky/style.css" type="text/css">
<link href="/htdocs/fckeditor/editor/css/fck_editorarea.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body>
<div id="siteName">
    <h1>$site_name</h1>
</div>
<div id="userIO">
  <!-- show user name-->
#if $m_username == '' 
<a href="/login">登录</a> | <a href="/reg">注册</a> 
#else
用户: [<a href="/user?u=$m_username&sid=$m_sid">$m_username</a>]   | <a href="/logout">退出</a> 
#end if
  <!-- show user name END-->
</div>
<div id="masthead">
  <div id="topHeader"></div>
  <div id="userMenu"></div>
  <div id="globalNav"> <a href="/view">首页</a> |
    <!-- show nav menu -->
#for $nav_name, $nav_path in $nav_lists 
<a title="$nav_name" href="/view?p=$nav_path">$nav_name</a>|
#end for
    <!-- show nav menu END-->
  </div>
</div>
<div id="navBar">
  <div id="search">
    <form action="/search">
      <label>查找文件</label>
      <input name="kw" type="text" size="15">
      <input name="goButton" type="submit" value="go">
    </form>
  </div>
  <div id="sectionLinks"> 
#set $dir_name = $prev_directory[0]
#set $dir_path = $prev_directory[1] 
<A title="$dir_name" href="/view?p=$dir_path">[ 回到上层目录 ]</A>
    <!-- show left box menu -->
#if $directory_lists != []
    <h3>目录列表</h3>
    <ul>
#for $dir_name, $dir_path, $dir_sname, $dir_size, $dir_mtime in $directory_lists
      <li><a title="目录: $dir_name
最后修改时间 : $dir_mtime" href="/view?p=$dir_path">$dir_name</a></li>
#end for
    </ul>
#end if
    <!-- show left box menu END-->
  </div>
  <!-- show Newestdir box menu -->
#if $newest_dirs != []
  <div class="topNew">
    <h3> 最新更新目录</h3>
    <ul>
#for $dir_name, $dir_path, $dir_sname, $dir_size, $dir_mtime in $newest_dirs
      <li><a title="目录: $dir_name
最后修改时间: $dir_mtime
" href="/view?p=$dir_path">$dir_name</a></li>
#end for
    </ul>
  </div>
#end if
  <!-- show Newestdir box menu END-->
</div>
<!--end navBar div -->
<div id="headlines">
  <h3>本站推荐</h3>
  <!-- Show site recommend -->
#for $dir_name, $dir_path, $dir_full_path, $dir_mtime in $recommend_lists
      <li><a title="目录: $dir_name
完整路径: $dir_full_path
最后修改时间 : $dir_mtime
" href="/view?p=$dir_path">$dir_name</a></li>
#end for
	<!-- show site recommend END -->
</div>
<!--end headlines -->
<div id="content">
  <div class="mediaIntro">
    <div class="currentPath">当前目录: $current_path </div>
	<div class="adminPanel">
<!-- Show admin panel-->
#if $m_admin == True
	管理员面板: 
	#if $recommend == True
		[<a href="#" onClick="MM_openBrWindow('/recommend?a=add&p=$m_current_path&sid=$m_sid','Recommend','width=400,height=90')">从推荐列表删除</a>]
	#elif $recommend == False
		[<a href="#" onClick="MM_openBrWindow('/recommend?a=del&p=$m_current_path&sid=$m_sid','Recommend','width=400,height=90')">添加到推荐列表</a>]
	#elif $recommend == None
		<!-- pass -->
	#end if
		[<a href="#" onClick="MM_openBrWindow('/editintro?p=$m_current_path&p_name=$current_path&sid=$m_sid','EditIntro','width=800,height=600')">编辑简介</a>]
#elif $m_admin == False
	<!-- pass -->
#end if
<!-- Show admin panel END-->
	</div>
    <div class="mediaContent">
      <p>
<!-- Show Cover -->
#for $cover_name, $cover_link in $cover_lists 
<a title="$cover_name" href='#' onClick="MM_openBrWindow('$cover_link','Cover','width=655,height=700')"> <img src="$cover_link" width="240" height="330" border="0"></a> 
#end for
<!-- Show Cover  End-->
      </p>
      <P>
<!-- Show Intro-->
$intro
<!--Show Intro End-->
      </P>
    </div>
<!-- video lists -->
#if $video_lists != []
    <div class="videoList">
      <ul>
#for $video_name, $video_path, $video_sname, $video_size, $video_mtime in $video_lists
        <li><a title="名称: $video_name
文件尺寸 : $video_size Kbyte
最后修改时间: $video_mtime
" href='#' onClick="MM_openBrWindow('/play?p=$video_path','player','width=655,height=700')">$video_sname</a></li>
#end for
      </ul>
    </div>
#end if
<!-- video lists END -->
<!-- audio lists -->
#if $audio_tag_lists != []
    <div class="audioList">
      <ul>
#for $audio_name, $audio_encode_url, $audio_artist, $audio_title, $audio_album, $audio_bitrate, $audio_size in $audio_tag_lists
        <li> <a title="名称 : $audio_name
演唱者 : $audio_artist
标题 : $audio_title
专辑名称: $audio_album
速率 : $audio_bitrate
文件尺寸: $audio_size
" href='#' onClick="MM_openBrWindow('/play?p=$audio_encode_url','player','width=655,height=700')">$audio_name</a> </li>
#end for
      </UL>
    </div>
#end if 
<!-- audio lists END -->
  </div>
  <div class="userComment">
    <h3>用户评论
:</h3>
    <ul>
      <li>flaman : [2005-10-22] some and some</li>
      <li>flaman : [2005-10-22] Nullam fringilla urna id leo. Praesent aliquet pretium erat. Praesent non odio. Pellentesque a magna a mauris vulputate lacinia. Aenean viverra. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Aliquam lacus. Mauris magna eros, semper a, tempor et, rutrum et, tortor. </li>
      <li>sdfasdf</li>
      <li>sdfasdf</li>
    </ul>
  </div>
  <div class="story">
    <h3>&nbsp;</h3>
  </div>
</div>
<!--end content -->
<div id="siteInfo">
  <p>页面执行时间[  $page_runtime ] 页面访问次数[ $page_visit ] 当前在线人数[ $current_online ]</p>
  <p><a href="#">关于</a> || <a href="#">声明</a> || <a href="#">版本</a> || $server_version</p>
</div>
<br>
</body>
</html>